// Pick主要用于抓取type类型，接口，类中的属性组成一个新的对象类型
interface Book {
  ISBN: string;
  book_name: boolean;
  book_price: string;
  store_count: number;
  publish: string;
}

type SubBook = Pick<Book, "ISBN" | "book_name" | "book_price">;

class Customer {
  name!: string;
  age!: number;
}

// 获取类中的属性
type SubCustomer = Pick<Customer, "age">;

export {};
